package com.timothy.fund.data;

public class NumberUtil {
	
	
    public static String formatData2Deci(double c) {
        java.text.DecimalFormat myformat = new java.text.DecimalFormat("#0.00");
        return myformat.format(c);
    }

    public static String formatData3Deci(double c) {
        java.text.DecimalFormat myformat = new java.text.DecimalFormat("#0.00");
        return myformat.format(c);
    }

    public static String formatData4Deci(double c) {
        java.text.DecimalFormat myformat = new java.text.DecimalFormat("#0.0000");
        return myformat.format(c);
    }
}
